gtk4.git
3 years agotreepopover: Add support for scrolling
Mat [Sun, 17 Jul 2022 19:24:51 +0000 (22:24 +0300)]
treepopover: Add support for scrolling

Add support for scrolling large tree popovers in a similar fashion to GtkPopoverMenu.

Fixes #3674
Fixes #4877

3 years agoUpdate Occitan translation
Quentin PAGÈS [Sun, 17 Jul 2022 15:38:50 +0000 (15:38 +0000)]
Update Occitan translation

3 years agoMerge branch 'picture-suggest-content-fit' into 'main'
Emmanuele Bassi [Sun, 17 Jul 2022 15:00:19 +0000 (15:00 +0000)]
Merge branch 'picture-suggest-content-fit' into 'main'

picture: Remove keep-aspect-ratio mention in the doc

See merge request GNOME/gtk!4886

3 years agopicture: Remove keep-aspect-ratio mention in the doc
Marco Melorio [Sun, 17 Jul 2022 14:17:40 +0000 (16:17 +0200)]
picture: Remove keep-aspect-ratio mention in the doc

We were still suggesting to use it in the main doc page. Suggest using
content-fit instead.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 17 Jul 2022 10:50:22 +0000 (10:50 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

filterlistmodel: Add a test

See merge request GNOME/gtk!4884

3 years agoslicelistmodel: Improve a test
Matthias Clasen [Sun, 17 Jul 2022 10:27:39 +0000 (06:27 -0400)]
slicelistmodel: Improve a test

Make sure that replacements in the underlying model
don't affect the slice list model if they are outside
the slice window.

3 years agosortlistmodel: Add a test
Matthias Clasen [Sun, 17 Jul 2022 10:22:55 +0000 (06:22 -0400)]
sortlistmodel: Add a test

Add  a test to prove that additions and removals
in the underlying model show up as expected.

3 years agofilterlistmodel: Add a test
Matthias Clasen [Sun, 17 Jul 2022 10:05:15 +0000 (06:05 -0400)]
filterlistmodel: Add a test

Test that items added in the underlying model show
up in the filter model (if they pass the filter).

Test removals as well.

See #5050

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 17 Jul 2022 01:33:09 +0000 (01:33 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

widget-factory: Make the icon work uninstalled

See merge request GNOME/gtk!4881

3 years agowidget-factory: Make the icon work uninstalled
Matthias Clasen [Sun, 17 Jul 2022 01:16:40 +0000 (21:16 -0400)]
widget-factory: Make the icon work uninstalled

Include the app logo as a resource, so we can show
it even when uninstalled.

3 years agoMerge branch 'fix-wrong-label-wrap-in-popover' into 'main'
Matthias Clasen [Sat, 16 Jul 2022 23:19:10 +0000 (23:19 +0000)]
Merge branch 'fix-wrong-label-wrap-in-popover' into 'main'

popover: Correctly substract arrow height when measuring popover widget

See merge request GNOME/gtk!4880

3 years agoMerge branch 'dnd' into 'main'
Benjamin Otte [Sat, 16 Jul 2022 21:37:15 +0000 (21:37 +0000)]
Merge branch 'dnd' into 'main'

DnD Fix Preferred Action for X11

Closes #4259

See merge request GNOME/gtk!4785

3 years agogdkdrop-x11: Use the preferred action if possible
Corey Berla [Sat, 16 Jul 2022 20:34:07 +0000 (13:34 -0700)]
gdkdrop-x11: Use the preferred action if possible

The XDND suggested action is a relic from when the source would control
the action for a drop.  With the new GtkDropTarget the target decides
the action (not the source).  That means the all of the returned
results from the ::enter and ::motion handlers will be unexpectely
ignored. Prefer to use the preferred action over the x11 suggested action.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4259
3 years agogdkdrop-x11: Fix preferred action
Corey Berla [Sat, 16 Jul 2022 20:01:31 +0000 (13:01 -0700)]
gdkdrop-x11: Fix preferred action

gdk_x11_drop_update_actions() sets actions to
drop_x11->suggested_action when !drop_x11->xdnd_have_actions
and then sets it again to drop_x11->suggested_action if it is.
If xdnd_have_actions is true use xdnd_actions.

3 years agopopover: Correctly substract arrow height when measuring popover widget
Yubao Liu [Sat, 16 Jul 2022 16:12:39 +0000 (00:12 +0800)]
popover: Correctly substract arrow height when measuring popover widget

For default popover arrow position and default height-for-width layout mode,
natural_width is calculated first with for_size=-1 and orientation=HORIZONTAL,
at the end of gtk_popover_measure() natural_width  won't be added with tail_height.

Then to measure with for_size=natural_width and orientation=VERTICAL, obviously
for_size shouldn't be substract with tail_height.

The wrong logic will force content in popover gets less width and then text labels
in popover may get wrapped unnecessarily.

3 years agoMerge branch 'content-fit-reftests' into 'main'
Benjamin Otte [Sat, 16 Jul 2022 16:06:57 +0000 (16:06 +0000)]
Merge branch 'content-fit-reftests' into 'main'

reftests: Add content-fit picture tests

See merge request GNOME/gtk!4879

3 years agoreftests: Add content-fit picture tests
Marco Melorio [Sat, 16 Jul 2022 14:47:17 +0000 (16:47 +0200)]
reftests: Add content-fit picture tests

3 years agoMerge branch 'test-coverage' into 'main'
Matthias Clasen [Sat, 16 Jul 2022 14:08:37 +0000 (14:08 +0000)]
Merge branch 'test-coverage' into 'main'

gtk-demo: Fix icon theme breakage

See merge request GNOME/gtk!4878

3 years agogtk-demo: Make the icon work uninstalled
Matthias Clasen [Sat, 16 Jul 2022 13:34:01 +0000 (09:34 -0400)]
gtk-demo: Make the icon work uninstalled

Include the app logo as a resource, so we can show
it even when uninstalled.

3 years agogtk-demo: Add a winning sound to the puzzle
Matthias Clasen [Sat, 16 Jul 2022 12:16:37 +0000 (08:16 -0400)]
gtk-demo: Add a winning sound to the puzzle

We should celebrate every win.

3 years agogtk-demo: Fix icon theme breakage
Matthias Clasen [Sat, 16 Jul 2022 11:23:55 +0000 (07:23 -0400)]
gtk-demo: Fix icon theme breakage

The starred emblem silently went away :(

3 years agogdk: Improve test coverage
Matthias Clasen [Sat, 16 Jul 2022 03:08:28 +0000 (23:08 -0400)]
gdk: Improve test coverage

3 years agopng loader: gray can have alpha
Matthias Clasen [Sat, 16 Jul 2022 03:07:59 +0000 (23:07 -0400)]
png loader: gray can have alpha

3 years agogdk: Drop an unused function
Matthias Clasen [Sat, 16 Jul 2022 03:03:28 +0000 (23:03 -0400)]
gdk: Drop an unused function

3 years agogdk: Improve test coverage
Matthias Clasen [Sat, 16 Jul 2022 02:49:42 +0000 (22:49 -0400)]
gdk: Improve test coverage

3 years agoMerge branch 'content-fit-followup' into 'main'
Benjamin Otte [Sat, 16 Jul 2022 00:24:31 +0000 (00:24 +0000)]
Merge branch 'content-fit-followup' into 'main'

GtkContentFit followups

See merge request GNOME/gtk!4877

3 years agopicture: Move variable definition at the top
Marco Melorio [Fri, 15 Jul 2022 23:37:10 +0000 (01:37 +0200)]
picture: Move variable definition at the top

3 years agopicture: Set overflow to be hidden
Marco Melorio [Fri, 15 Jul 2022 23:31:19 +0000 (01:31 +0200)]
picture: Set overflow to be hidden

The new content-fit property was wrongly suggesting to manually set
widgets' overflow property, but that property is not really intended to
be set by external code. This commit removes those suggestions and
directly set picture's overflow to be hidden.

3 years agopicture: Fix replacement for deprecated methods
Marco Melorio [Fri, 15 Jul 2022 23:18:07 +0000 (01:18 +0200)]
picture: Fix replacement for deprecated methods

3 years agoMerge branch 'text-placeholder-visibility' into 'main'
Matthias Clasen [Fri, 15 Jul 2022 23:00:16 +0000 (23:00 +0000)]
Merge branch 'text-placeholder-visibility' into 'main'

text: Update placeholder visibility more

See merge request GNOME/gtk!4875

3 years agoMerge branch 'test-coverage' into 'main'
Matthias Clasen [Fri, 15 Jul 2022 22:34:02 +0000 (22:34 +0000)]
Merge branch 'test-coverage' into 'main'

node-editor: Make the help more helpful

See merge request GNOME/gtk!4874

3 years agoMerge branch 'gtk-content-fit' into 'main'
Matthias Clasen [Fri, 15 Jul 2022 22:28:42 +0000 (22:28 +0000)]
Merge branch 'gtk-content-fit' into 'main'

picture: Add content-fit property

Closes #5027

See merge request GNOME/gtk!4873

3 years agoMerge branch 'nick.richards-main-patch-67353' into 'main'
Matthias Clasen [Fri, 15 Jul 2022 22:21:23 +0000 (22:21 +0000)]
Merge branch 'nick.richards-main-patch-67353' into 'main'

Improve style in GtkInscription documentation

See merge request GNOME/gtk!4876

3 years agopicture: Add content-fit property
Marco Melorio [Fri, 15 Jul 2022 16:18:26 +0000 (18:18 +0200)]
picture: Add content-fit property

It allows to specify the resize mode of the paintable inside the
GtkPicture allocation. This also deprecates the keep-aspect-ratio
property.

Fixes #5027.

3 years agoImprove style in GtkInscription documentation
nick richards [Fri, 15 Jul 2022 20:55:37 +0000 (20:55 +0000)]
Improve style in GtkInscription documentation

3 years agotext: Update placeholder visibility more
Matthias Clasen [Fri, 15 Jul 2022 20:44:54 +0000 (16:44 -0400)]
text: Update placeholder visibility more

When the text in the buffer changes, we should
update the placeholder visibility, since we might
have gone from empty to non-empty.

3 years agogsk: Improve test coverage
Matthias Clasen [Fri, 15 Jul 2022 13:42:45 +0000 (09:42 -0400)]
gsk: Improve test coverage

3 years agoglshader: Add preconditions
Matthias Clasen [Fri, 15 Jul 2022 18:40:55 +0000 (14:40 -0400)]
glshader: Add preconditions

Add preconditions to many of the glshader
uniform apis.

3 years agoDrop an unused function
Matthias Clasen [Fri, 15 Jul 2022 14:24:41 +0000 (10:24 -0400)]
Drop an unused function

3 years agonode-editor: Sort help better
Matthias Clasen [Fri, 15 Jul 2022 12:36:35 +0000 (08:36 -0400)]
node-editor: Sort help better

Move the gshader section where it belongs.

3 years agonode-editor: Make the help more helpful
Matthias Clasen [Fri, 15 Jul 2022 11:42:35 +0000 (07:42 -0400)]
node-editor: Make the help more helpful

I struggled to remember how newlines vs strings work in
this format, so put it in the docs.

3 years agorendernodeparser: Cosmetics
Matthias Clasen [Fri, 15 Jul 2022 11:15:07 +0000 (07:15 -0400)]
rendernodeparser: Cosmetics

3 years agoAdd some tests for GtkNoSelection
Matthias Clasen [Fri, 15 Jul 2022 03:32:00 +0000 (23:32 -0400)]
Add some tests for GtkNoSelection

3 years agoAdd some tests for the listlistmodel
Matthias Clasen [Fri, 15 Jul 2022 02:51:13 +0000 (22:51 -0400)]
Add some tests for the listlistmodel

3 years agomaplistmodel: Fix an oversight
Matthias Clasen [Thu, 14 Jul 2022 23:51:26 +0000 (19:51 -0400)]
maplistmodel: Fix an oversight

This was meant to go into 678eb8ab76bd.

3 years agoMerge branch 'fix-maplistmodel' into 'main'
Matthias Clasen [Thu, 14 Jul 2022 23:48:27 +0000 (23:48 +0000)]
Merge branch 'fix-maplistmodel' into 'main'

maplistmodel: Fix items-changed emission

See merge request GNOME/gtk!4872

3 years agoAdd more maplistmodel tests
Matthias Clasen [Thu, 14 Jul 2022 20:52:30 +0000 (16:52 -0400)]
Add more maplistmodel tests

Add some tests for adding and removing items.

3 years agomaplistmodel: Fix items-changed emission
Matthias Clasen [Thu, 14 Jul 2022 20:50:22 +0000 (16:50 -0400)]
maplistmodel: Fix items-changed emission

We were modifying the removed value before passing
it to the items-changed signal, so we always ended
up with removed == 0 in our signal emission, instead
of passing the original value on, as we should.

Pointed out in !4870

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Thu, 14 Jul 2022 20:46:37 +0000 (20:46 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

pango_font_description_to_css: Handle numeric weight

See merge request GNOME/gtk!4871

3 years agopango_font_description_to_css: Handle numeric weight
Matthias Clasen [Thu, 14 Jul 2022 13:46:05 +0000 (09:46 -0400)]
pango_font_description_to_css: Handle numeric weight

The PangoWeight enum agrees with the numeric values
we use here, so we can do this without a switch and
support numeric weight values at the same time.

3 years agoMerge branch 'add-back-pango-css' into 'main'
Matthias Clasen [Thu, 14 Jul 2022 11:43:04 +0000 (11:43 +0000)]
Merge branch 'add-back-pango-css' into 'main'

pango_font_description_to_css: Add extra-expanded

See merge request GNOME/gtk!4869

3 years agopango_font_description_to_css: Add extra-expanded
Maximiliano Sandoval R [Thu, 14 Jul 2022 10:55:16 +0000 (12:55 +0200)]
pango_font_description_to_css: Add extra-expanded

3 years agoMerge branch 'coreyberla-main-patch-84997' into 'main'
Matthias Clasen [Wed, 13 Jul 2022 23:44:53 +0000 (23:44 +0000)]
Merge branch 'coreyberla-main-patch-84997' into 'main'

ci: Remove print-backends build option

See merge request GNOME/gtk!4866

3 years agoMerge branch 'ebassi/childless-stack-page' into 'main'
Matthias Clasen [Wed, 13 Jul 2022 21:11:58 +0000 (21:11 +0000)]
Merge branch 'ebassi/childless-stack-page' into 'main'

stack: Assert that StackPage:child is set

See merge request GNOME/gtk!4201

3 years agoci: Remove print-backends build option
Corey Berla [Wed, 13 Jul 2022 14:21:12 +0000 (14:21 +0000)]
ci: Remove print-backends build option

Flatpak CI is failing because of unknown option "print-backends".
print-backends was renamed to print in c4d350c260879c11ea94641ac820b331aeaccc7c
and subsequently was removed in a4aa6d79addfcc5f6b61a9aecd2b3a647e249622
(replaced by print-cups and print-cloudprint as auto options)

3 years agotestsuite: Fix up a few test for GtkStackPage changes
Matthias Clasen [Fri, 27 May 2022 21:24:58 +0000 (17:24 -0400)]
testsuite: Fix up a few test for GtkStackPage changes

GtkStackPage objects can no longer be freely created.
Update our generic object tests to take that into
account.

3 years agoGtkStack: Create stack pages with child
Matthias Clasen [Fri, 27 May 2022 21:24:14 +0000 (17:24 -0400)]
GtkStack: Create stack pages with child

We're requiring stack pages to have a child
at construction time now. Make it so!

3 years agostack: Assert that StackPage:child is set
Emmanuele Bassi [Mon, 29 Nov 2021 16:57:21 +0000 (16:57 +0000)]
stack: Assert that StackPage:child is set

Childless GtkStackPage instances are not allowed, otherwise everything
falls apart in random places.

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 13 Jul 2022 12:58:18 +0000 (12:58 +0000)]
Update Indonesian translation

3 years agoMerge branch 'check-button-s-ancestry' into 'main'
Matthias Clasen [Wed, 13 Jul 2022 11:20:57 +0000 (11:20 +0000)]
Merge branch 'check-button-s-ancestry' into 'main'

print: Check button is not descendant of toggle button

See merge request GNOME/gtk!4864

3 years agoMerge branch 'empty_list_adjustment' into 'main'
Matthias Clasen [Wed, 13 Jul 2022 11:17:07 +0000 (11:17 +0000)]
Merge branch 'empty_list_adjustment' into 'main'

listviews: Reset scrollbar adjustment when list is empty

Closes #4370

See merge request GNOME/gtk!4865

3 years agoMerge branch 'main' into 'main'
Matthias Clasen [Wed, 13 Jul 2022 11:02:02 +0000 (11:02 +0000)]
Merge branch 'main' into 'main'

textview: Include gutter while computing child allocations

Closes #5016

See merge request GNOME/gtk!4849

3 years agotextview: Include gutter while computing child allocations
JCWasmx86 [Sun, 3 Jul 2022 07:49:25 +0000 (09:49 +0200)]
textview: Include gutter while computing child allocations

The width of the left gutter and the height of the top gutter
are now used while computing the child allocations for e.g.
anchors, otherwise - if such a gutter is present - the
widget would be at the wrong position.

Closes #5016

3 years ago4.7.1
Matthias Clasen [Wed, 13 Jul 2022 02:55:33 +0000 (22:55 -0400)]
4.7.1

3 years agolistviews: Reset scrollbar adjustment when list is empty
Corey Berla [Tue, 12 Jul 2022 19:42:28 +0000 (12:42 -0700)]
listviews: Reset scrollbar adjustment when list is empty

In a list with a visible scrollbar, the scrollbar usually becomes
invisible when the numbers of items is less than the required amount
to scroll.  If, however, the list is emptied all at once,
the scrollbar remains.  This happens because when there's an empty
list gtk_list_view_size_allocate() returns early before the scrollbar
adjustment is updated.

Given that the list is empty, simply reset the adjustment values
to zero.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4370
3 years agoprint: Check button is not descendant of toggle button
Marek Kasik [Tue, 12 Jul 2022 14:22:59 +0000 (16:22 +0200)]
print: Check button is not descendant of toggle button

GtkCheckButton is not derived from GtkToggleButton anymore.
This caused some issues in GtkPrinterOptionWidget which
did not port handling of the button.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 11 Jul 2022 19:32:55 +0000 (19:32 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

search-entry: Add getter/setter annotation

See merge request GNOME/gtk!4862

3 years agosearch-entry: Add getter/setter annotation
Matthias Clasen [Mon, 11 Jul 2022 19:08:39 +0000 (15:08 -0400)]
search-entry: Add getter/setter annotation

This was suggested in !4823.

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Matthias Clasen [Mon, 11 Jul 2022 18:44:01 +0000 (18:44 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

frameclock: Run paint idle from flush idle

Closes #4941

See merge request GNOME/gtk!4858

3 years agoMerge branch 'free-print-backends' into 'main'
Matthias Clasen [Mon, 11 Jul 2022 18:04:46 +0000 (18:04 +0000)]
Merge branch 'free-print-backends' into 'main'

print: Free print backends after use

Closes #5019

See merge request GNOME/gtk!4860

3 years agoMerge branch 'ebassi/finish-template' into 'main'
Matthias Clasen [Mon, 11 Jul 2022 18:02:28 +0000 (18:02 +0000)]
Merge branch 'ebassi/finish-template' into 'main'

Add gtk_widget_clear_template()

See merge request GNOME/gtk!4735

3 years agoMerge branch 'fix_flatpak' into 'main'
Matthias Clasen [Mon, 11 Jul 2022 17:35:45 +0000 (17:35 +0000)]
Merge branch 'fix_flatpak' into 'main'

Fix flatpak

See merge request GNOME/gtk!4861

3 years agoRename clear_template to dispose_template
Emmanuele Bassi [Thu, 7 Jul 2022 13:09:35 +0000 (14:09 +0100)]
Rename clear_template to dispose_template

Make it more clear that the function is supposed to be called during the
dispose sequence of a widget.

3 years agofontchooserdialog: Use gtk_widget_clear_template()
Emmanuele Bassi [Thu, 7 Jul 2022 12:59:18 +0000 (13:59 +0100)]
fontchooserdialog: Use gtk_widget_clear_template()

3 years agostatusbar: Use gtk_widget_clear_template()
Emmanuele Bassi [Thu, 7 Jul 2022 12:59:03 +0000 (13:59 +0100)]
statusbar: Use gtk_widget_clear_template()

3 years agofilechooserwidget: Use gtk_widget_clear_template()
Emmanuele Bassi [Thu, 7 Jul 2022 12:58:51 +0000 (13:58 +0100)]
filechooserwidget: Use gtk_widget_clear_template()

3 years agofilechooserdialog: Use gtk_widget_clear_template()
Emmanuele Bassi [Thu, 7 Jul 2022 12:58:32 +0000 (13:58 +0100)]
filechooserdialog: Use gtk_widget_clear_template()

3 years agoPort the inspector to gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:53:22 +0000 (13:53 +0100)]
Port the inspector to gtk_widget_clear_template()

Use clear_template() instead of unparenting widgets manually.

3 years agodocs: Include clear_template() in the templates overview
Emmanuele Bassi [Wed, 6 Jul 2022 12:29:31 +0000 (13:29 +0100)]
docs: Include clear_template() in the templates overview

Make sure that it's clear how to use it in idiomatic code, by tying it
to gtk_widget_init_template().

3 years agoPort gtk-demo widgets to gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:23:54 +0000 (13:23 +0100)]
Port gtk-demo widgets to gtk_widget_clear_template()

3 years agoPort node editor to gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:23:36 +0000 (13:23 +0100)]
Port node editor to gtk_widget_clear_template()

3 years agoPort icon browser to gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:23:23 +0000 (13:23 +0100)]
Port icon browser to gtk_widget_clear_template()

3 years agoPort constraint editor to gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:22:54 +0000 (13:22 +0100)]
Port constraint editor to gtk_widget_clear_template()

3 years agodocs: Clarify scope of gtk_widget_clear_template()
Emmanuele Bassi [Wed, 6 Jul 2022 12:04:22 +0000 (13:04 +0100)]
docs: Clarify scope of gtk_widget_clear_template()

The clear_template() method only clears the template children.

3 years agoemojichooser: Use gtk_widget_clear_template()
Emmanuele Bassi [Mon, 23 May 2022 14:17:03 +0000 (15:17 +0100)]
emojichooser: Use gtk_widget_clear_template()

3 years agomediacontrols: Use gtk_widget_clear_template()
Emmanuele Bassi [Mon, 23 May 2022 14:16:27 +0000 (15:16 +0100)]
mediacontrols: Use gtk_widget_clear_template()

3 years agoAdd gtk_widget_clear_template()
Emmanuele Bassi [Mon, 16 May 2022 13:10:20 +0000 (14:10 +0100)]
Add gtk_widget_clear_template()

The dual of gtk_widget_init_template(), which should be used to clear
the template data associated with a specific GtkWidget type.

3 years agoflatpak: Bump boost to 1.79
Corey Berla [Mon, 11 Jul 2022 16:11:59 +0000 (09:11 -0700)]
flatpak: Bump boost to 1.79

3 years agoflatpak: Remove benchmarks build option for graphene
Corey Berla [Mon, 11 Jul 2022 16:11:24 +0000 (09:11 -0700)]
flatpak: Remove benchmarks build option for graphene

benchmarks was removed in
https://github.com/ebassi/graphene/commit/419edb99f0a314f51157b04d645cd24a959598d2

3 years agoflatpak: Change option enable_vulkan=no to vulkan=disabled
Corey Berla [Mon, 11 Jul 2022 16:08:47 +0000 (09:08 -0700)]
flatpak: Change option enable_vulkan=no to vulkan=disabled

Syntax was modified in c4d350c260879c11ea94641ac820b331aeaccc7c

3 years agoprint: Free print backends after use
Marek Kasik [Mon, 11 Jul 2022 14:54:36 +0000 (16:54 +0200)]
print: Free print backends after use

Print backends loaded in GtkPrintUnixDialog's load_print_backends()
are not freed later as done in e.g. GtkPageSetupUnixDialog.
This commit destroys and unref those print backends.

Closes #5019

3 years agoNEWS: Updates
Matthias Clasen [Sun, 10 Jul 2022 22:52:01 +0000 (18:52 -0400)]
NEWS: Updates

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Sun, 10 Jul 2022 20:38:29 +0000 (20:38 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

inspector: Hide measure graphs by default

See merge request GNOME/gtk!4859

3 years agoinspector: Hide measure graphs by default
Matthias Clasen [Sun, 10 Jul 2022 20:24:12 +0000 (16:24 -0400)]
inspector: Hide measure graphs by default

It is much more valuable to have a responsive inspector,
than to have these graphs.

3 years agoMerge branch 'fix-fractional-letterspacing' into 'main'
Matthias Clasen [Sun, 10 Jul 2022 19:42:25 +0000 (19:42 +0000)]
Merge branch 'fix-fractional-letterspacing' into 'main'

css: Allow fractional letterspacing

Closes #5034

See merge request GNOME/gtk!4857

3 years agoframeclock: Run paint idle from flush idle
Benjamin Otte [Sun, 10 Jul 2022 19:15:22 +0000 (21:15 +0200)]
frameclock: Run paint idle from flush idle

Don't return to the main loop, instead force a run of the paint idle.
The paint idle will know to skip all the phases that aren't requested.

This is critically important becuase gdksurface.c assumes the
FLUSH_EVENTS and RESUME_EVENTS phases are matched, and we cannot
guarantee that if we return to the main loop and let various reentrant
code change the frame clock state.

This would lead to bugs with events being paused and never unpaused
again or even crashes.

Fixes #4941

3 years agocss: Allow fractional letterspacing
Matthias Clasen [Sun, 10 Jul 2022 19:22:18 +0000 (15:22 -0400)]
css: Allow fractional letterspacing

Something like letter-spacing: -0.5px make a lot of
sense. But we were handling the number as integer
somewhere, loosing the fractional part.

Fixes: #5034
3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Fri, 8 Jul 2022 02:00:11 +0000 (02:00 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

widget-factory: Fix a missing export

See merge request GNOME/gtk!4855

3 years agowidget-factory: Fix a missing export
Matthias Clasen [Fri, 8 Jul 2022 01:44:57 +0000 (21:44 -0400)]
widget-factory: Fix a missing export

This broke when we started using a scope.

3 years agoMerge branch 'wip/cdavis/use-password-input-purpose' into 'main'
Matthias Clasen [Wed, 6 Jul 2022 19:48:57 +0000 (19:48 +0000)]
Merge branch 'wip/cdavis/use-password-input-purpose' into 'main'

passwordentry: Use password input purpose

See merge request GNOME/gtk!4854